//
const path = require('path');
const BannerWebpackPlugin = require('webpack-build-banner')

module.exports = {
    // 指定入口文件
    entry:path.resolve(__dirname,"src/index.js") ,//"./src/index.ts",
    // 指定输出文件
    output: {
        // 指定输出的文件目录
        path:path.resolve(__dirname,"dist"),
        // 打包后的文件名
        filename:"index.js",
        library:{
            name:'AddVerionPlugin',
            type:'umd'
        },
        globalObject:'globalThis'
    },
    target: 'node',
    mode:'production',
    plugins: [
        new BannerWebpackPlugin({
            author: '章旭东',
            email: '2269983609@qq.com',
            extensions:['js']
        })
    ]
	
}